package com.pzhyd.sc.biz.inter;

import java.util.List;

import com.pzhyd.sc.entity.Votedinfo;
import com.pzhyd.sc.entity.Voteoption;
import com.pzhyd.sc.util.Page;

/** 
 * @Project: webvote
 * @Title: IvoteBiz.java
 * @Package com.pzhyd.sc.biz.inter
 * @Description: TODO
 * @author Gaoshiwei 812257531@qq.com
 * @date Jul 11, 2012 3:09:23 PM
 * @Copyright: 2012 攀枝花移动 All rights reserved.
 * @version V1.0  
 */
public interface IvoteBiz {
	//添加投票者信息
	public boolean insertVoter(Votedinfo vi);
	
	public boolean updateVoter(Votedinfo vi);
	
	public boolean deleteVoter(Votedinfo vi);
	
	public boolean deleteVoters(int[] viid);
	
	public void searchAllvoter(Page page);
	
	public Votedinfo searchByid(int viid);
	
	public List<Votedinfo> searchAllvoter();
	
	//投票记录信息
	public boolean insertVoteoption(Voteoption vo);
	
	public boolean updateVoteoption(Voteoption vo);
	
	public boolean deleteVoteoption(Voteoption vo);
	
	public boolean deleteVoteoptions(int[]vo_id);
	
	public void searchAllvoteoptions(Page page);
	//获取同一个ip最后投票的时间
	public Voteoption searchByIP(String ip);
	
	//操作多对象
	public boolean vote(Votedinfo vi,Voteoption vo);
}
